<html>
<head><meta charset="utf-8"><title>Replace crates.io registry with private registry · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Replace.20crates.2Eio.20registry.20with.20private.20registry.html">Replace crates.io registry with private registry</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="242905885"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Replace%20crates.io%20registry%20with%20private%20registry/near/242905885" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> UebelAndre <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Replace.20crates.2Eio.20registry.20with.20private.20registry.html#242905885">(Jun 16 2021 at 16:28)</a>:</h4>
<p>I'm trying to figure out how to update a host behind a firewall to use custom crate registry. My thought was to update something in <code>~/.cargo/config.toml</code> to remap <a href="http://crates.io">crates.io</a> to my own registry. Is that possible? Or would i have to update every project to be aware of this custom registry?</p>



<a name="242913355"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Replace%20crates.io%20registry%20with%20private%20registry/near/242913355" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eh2406 <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Replace.20crates.2Eio.20registry.20with.20private.20registry.html#242913355">(Jun 16 2021 at 17:20)</a>:</h4>
<p><a href="https://doc.rust-lang.org/cargo/reference/source-replacement.html">https://doc.rust-lang.org/cargo/reference/source-replacement.html</a><br>
This may be what you need.</p>



<a name="243015923"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Replace%20crates.io%20registry%20with%20private%20registry/near/243015923" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> UebelAndre <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Replace.20crates.2Eio.20registry.20with.20private.20registry.html#243015923">(Jun 17 2021 at 13:21)</a>:</h4>
<p>Yes, thank you!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>